package com.happyhome.datamodel;

import java.io.Serializable;

import javax.persistence.*;


/**
 * The persistent class for the room_utilities database table.
 * 
 */
@Entity
@Table(name="ROOM_UTILITIES")
public class RoomUtility implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long idRoomUtilities;
	private Boolean status;
	private Room room;
	private Utility utility;

	public RoomUtility() {
	}


	@Id
	@Column(name="ID_ROOM_UTILITIES")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getIdRoomUtilities() {
		return this.idRoomUtilities;
	}

	public void setIdRoomUtilities(Long idRoomUtilities) {
		this.idRoomUtilities = idRoomUtilities;
	}

	@Column(name="STATUS")
	public Boolean getStatus() {
		return this.status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	//bi-directional many-to-one association to Room
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="ROOM_ID")
	public Room getRoom() {
		return this.room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}


	//bi-directional many-to-one association to Utility
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="UTILITY_ID")
	public Utility getUtility() {
		return this.utility;
	}

	public void setUtility(Utility utility) {
		this.utility = utility;
	}

}